package cn.itsource.abstractclass;

/**
 *	圆形
 */
public class Circle extends Graph {
	private double r;
	
	public Circle() {
	}
	
	public Circle(double r) {
		super();
		this.r = r;
	}

	public double getR() {
		return r;
	}

	public void setR(double r) {
		this.r = r;
	}

	@Override
	public double getArea() {
		return Math.PI * r * r;
	}
	
}
